﻿using System;
using RpcModel;

namespace Wedonek.RpcStore.Gateway.Model
{
        /// <summary>
        /// 访问统计
        /// </summary>
        public class VisitCensus
        {
                /// <summary>
                /// 数据Id
                /// </summary>
                public Guid Id
                {
                        get;
                        set;
                }
                /// <summary>
                /// 服务节点
                /// </summary>
                public long ServiceId
                {
                        get;
                        set;
                }
                /// <summary>
                /// 服务名
                /// </summary>
                public string ServerName
                {
                        get;
                        set;
                }
                /// <summary>
                /// 是否在线
                /// </summary>
                public bool IsOnline
                {
                        get;
                        set;
                }
                /// <summary>
                /// 是否是容器
                /// </summary>
                public bool IsContainer
                {
                        get;
                        set;
                }
                /// <summary>
                /// 服务状态
                /// </summary>
                public RpcServiceState ServiceState
                {
                        get;
                        set;
                }
                /// <summary>
                /// 指令集
                /// </summary>
                public string Dictate
                {
                        get;
                        set;
                }
                /// <summary>
                /// 说明
                /// </summary>
                public string Show
                {
                        get;
                        set;
                }
                /// <summary>
                /// 访问量
                /// </summary>
                public long VisitNum
                {
                        get;
                        set;
                }
                /// <summary>
                /// 成功数
                /// </summary>
                public long SuccessNum
                {
                        get;
                        set;
                }
                /// <summary>
                /// 失败数
                /// </summary>
                public long FailNum
                {
                        get;
                        set;
                }
                /// <summary>
                /// 今日访问数
                /// </summary>
                public long TodayVisit
                {
                        get;
                        set;
                }
                /// <summary>
                /// 今日失败数
                /// </summary>
                public long TodayFail
                {
                        get;
                        set;
                }
                /// <summary>
                /// 今日成功数
                /// </summary>
                public long TodaySuccess
                {
                        get;
                        set;
                }
        }
}
